package org.codeart.springdemo.factory;

import org.codeart.springdemo.pojo.IPhone;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.stereotype.Component;

@Component("iPhoneFactoryBean")
public class IPhoneFactoryBean implements FactoryBean<IPhone> {

    @Override
    public IPhone getObject() throws Exception {
        return new IPhone();
    }

    @Override
    public Class<?> getObjectType() {
        return IPhone.class;
    }
}
